import QtQuick
import QtQuick3D

//用于三维场景进行射线检测
//不知为何Qt射线检测一定要view参与

QtObject{
    id:root

    property View3D view

    function pick(x,y){
        if(view)
        {
            return view.pick(x,y)
        }
    }

    function pickAll(x,y){
        if(view)
        {
            return view.pickAll(x,y)
        }
    }

    function rayPick(origin,direction){
        if(view)
        {
            return view.rayPick(origin,direction)
        }
        return undefined
    }

    function rayPickAll(origin,direction){
        if(view)
        {
            return view.rayPickAll(origin,direction)
        }
        return undefined
    }

}
